﻿
namespace Portal.Models
{
    /// <summary>
    /// WMS.Portal项目全局变量
    /// </summary>
    public class GlobalVariable
    {
        /*
         * 状态码
         */
        public const int Ok = 200;
        public const int Error = -1;

        /*
         * 菜单权限类型
         */
        public const string TypeMenu = "menu";
        public const string TypePermission = "permission";

        /*
         * 可用状态
         */
        public const int AvailableTrue = 1;
        public const int AvailableFalse = 0;

        /*
         * 用户类型
         */
        public const int UserTypeSuper = 0;
        public const int UserTypeNormal = 1;

        /*
         * 展开类型
         */
        public const int OpenTrue = 1;
        public const int OpenFalse = 0;

        /// <summary>
        /// 用于标记Session中当前登陆的用户信息
        /// </summary>
        public const string LoginUser = "LoginUser";

        /// <summary>
        /// 用于标记Session中当前验证码
        /// </summary>
        public const string ValidateCode = "validateCode";



    }
}